package com.powernode.feign.hystrix;

import com.alibaba.fastjson.JSON;
import com.powernode.domain.Basket;
import com.powernode.feign.OrderCartFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 内容:
 * 作者: cy
 */
@Component
@Slf4j
public class OrderCartFeignHystrix implements OrderCartFeign {
    @Override
    public List<Basket> getBasketsByIds(List<Long> basketIds) {
        log.error("根据购物车ids查询购物车集合失败,购物车ids为{}", JSON.toJSONString(basketIds));
        return null;
    }
    @Override
    public Boolean clearCart(List<Long> skuIds, String openId) {
        log.error("根据会员的id和skuIds清空购物车失败,skuIds为{},用户id为{}", JSON.toJSONString(skuIds), openId);
        return false;
    }
}
